public bool DeleteSLAForActor(int SLAId) { log.Info(string.Format(LogMessages.RequestMethod, RequestContext.Principal.Identity.Name, "Actor\\DeleteSLAForActor")); ActorRepository actorRepository = new ActorRepository(); if (actorRepository.DeleteSLA(SLAId) > 0) { return(true); } else { throw HttpMessageExceptionBuilder.Build(HttpStatusCode.InternalServerError, HttpMessageType.Error, JsonConvert.SerializeObject(string.Empty), Messages.DeleteSLAForActor, Messages.DeleteSLAForActorHeader); } }