public List <LanguageTranslationResponse> GetLanguageTranslationByID(long loginId, string langId) { List <LanguageTranslationResponse> _response = null; _storedProcBuilder.StoredProc(StoredProcConstant.PROC_GetPreferredLanguage) .ClearParam() .AddParam("@i_prefLanguage", langId) .AddParam("@i_Mode", "Preferrence_Details") .Exec(r => _response = r.ToList <LanguageTranslationResponse>()); return(_response); }
public AuthenticateResponse Authenticate(AuthenticateRequest model) { try { List <dynamic> resuslt = null; _storedProcBuilder.StoredProc("Test.fn_GetUserWithRole") .AddParam("puser_name", "test") .Exec(x => resuslt = x.ToList <dynamic>()); var user = _repositoryUser.Query() .Filter(x => x.UserName == model.UserName && x.Password == model.Password) .GetWithNoTracking().FirstOrDefault(); var UserModel = user.ToModel <AuthenticateResponse>(); UserModel.UserId = user.Id; UserModel.OriginalUserName = user.FirstName + " " + user.LastName; return(UserModel); } catch (ArgumentNullException) { return(null); } }