strange if using statement, cant reach return path?

public IEnumerable GetRequests(string erisim, string sube, string sicil)
{
using (var redisclient = RedisManager.GetClient())
{
var redisUser = redisclient.As();

            if (erisim == "A")
            {
                return redisUser.GetAll();// .Where(c=>c.Sube=="Y");
            }
            else if (erisim == "P")
            {
                return redisUser.GetAll().Where(c => c.Sube == sube);
            }
            else if (erisim == "C")
            {
                return redisUser.GetAll().Where(c => c.CagriAcan == sicil);
            }

        }
    }

Posts

Sign In or Register to comment.