public dynamic RequestGroupLeaderShip(GroupLeaderShipInput request) { User_Request objUserRequest = new User_Request(); objUserRequest.description = request.description; objUserRequest.user_id = request.userId; var userRequestSubmitted = objEntities.User_Request.Where(item => item.user_id == request.userId).ToList(); if (userRequestSubmitted.Count() != 0) { return(null); } var result = objEntities.User_Request.Add(objUserRequest); objEntities.SaveChanges(); if (result == null) { return(false); } else { return(true); } }
public dynamic RequestGroupLeaderShip(GroupLeaderShipInput request) { var result = objRepository.RequestGroupLeaderShip(request); return(result); }