public int GetFeedbackGivenCount(int userId, int poeId) { try { UserAdmin userAdmin = new UserAdmin(); return(userAdmin.GetGivenFeedBackCount(userId, poeId)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } return(0); }