public Response <UsuarioModel> Login(string email, string password) { Response <UsuarioModel> response = new Response <UsuarioModel>(); try { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@email", email, DbType.String); parameters.Add("@pasword", util.Base64_Decode(password), DbType.String); response.Result = repository.GetSingle("sps_usuario", parameters); if (response.Result != null) { response.Code = ResponseEnum.Ok; } else { response.Code = ResponseEnum.No_Found; response.Menssage = "El usuario o la contraseña son incorrectos"; } } catch (Exception e) { response.Code = ResponseEnum.Fail; response.Menssage = "Error en el login"; } return(response); }