public void ResetPendingMessages(ChatUserProfileAddRequest model) { DataProvider.ExecuteNonQuery("dbo.ChatUserProfile_ResetPendingMessages", inputParamMapper : delegate(SqlParameterCollection paramCollection) { paramCollection.AddWithValue("@UserBaseId", model.UserBaseId); paramCollection.AddWithValue("@ChatId", model.ChatId); }); }
public void ToggleOnChat(ChatUserProfileAddRequest model) { DataProvider.ExecuteNonQuery("dbo.ChatUserProfile_ToggleOnChat", inputParamMapper : delegate(SqlParameterCollection paramCollection) { paramCollection.AddWithValue("@UserBaseId", model.UserBaseId); paramCollection.AddWithValue("@ChatId", model.ChatId); paramCollection.AddWithValue("@IsOnChat", model.IsOnChat); }); }
public HttpResponseMessage ToggleOnChat(ChatUserProfileAddRequest model) { try { model.UserBaseId = _userService.GetCurrentUserId(); _chatUserProfileService.ToggleOnChat(model); return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse())); } catch (Exception ex) { throw ex; } }
public HttpResponseMessage IncrementPendingMessages(int chatId) { try { ChatUserProfileAddRequest model = new ChatUserProfileAddRequest { ChatId = chatId, UserBaseId = _userService.GetCurrentUserId() }; _chatUserProfileService.IncrementPendingMessages(model); return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse())); } catch (Exception ex) { throw ex; } }